package com.example.nonacademic_education.dao;

import com.example.nonacademic_education.data.response.AuthorityDto;
import com.example.nonacademic_education.entity.Authority;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AuthorityDao {
    @Select("select * from authority where parent_id=#{parentId}")
    List<AuthorityDto> getAll(Long parentId);

    List<String> getValueByIds(@Param("ids") List<Long> ids);

    List<String> getPermissionByIds(@Param("ids")List<Long> idsByUsername);
}
